package com.itheima.mMothodDemo;

public class OverloadDmeo {
    public static void main(String[] args) {
        int a = 12;
        short b = 15;
        System.out.println(compare(15, 58));
        System.out.println(compare(a, b));
    }

    public static boolean compare(int a, int b) {
        return a == b;
    }

    public static boolean compare(byte a, byte b) {
        return a == b;
    }

    public static boolean compare(short a, short b) {
        return a == b;
    }

    public static boolean compare(long a, long b) {
        return a == b;
    }
}
